package com.itheima.grow.controller;

import com.itheima.grow.model.other.Result;
import com.itheima.grow.service.IPdfService;
import com.itheima.grow.service.IThreadCoolService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.annotation.Resource;

@Slf4j
@RestController
@RequestMapping("/cool")
public class ThreadCoolController {

    @Resource
    private IThreadCoolService threadCoolService;

    @GetMapping("/test")
    public Result test(){
        threadCoolService.commonal();
        return Result.success("end");
    }
}
